<?php
/**
 * Bootstrap de l'application
 * @package bp-clients
 */

/**
 * Bootstrap de l'application
 * @package bp-clients
 */
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initHelperPath(){
        $view = $this->bootstrap('layout')->getResource('layout')->getView();
        $view->addHelperPath('../application/views/helper/', 'Application_View_Helper');
        
    }
    /**
     * Initialisation du doctype
     */
    protected function _initDoctype()
    {
        $this->bootstrap('view');
        $view = $this->getResource('view');
        $view->doctype('HTML5');
        
        $view->headTitle('bp-clients')
             ->setSeparator(' :: ');
    }
	
	/**
     * Initialisation du menu de navigation
     */
	protected function _initNavigation() 
	{
		$view = $this->bootstrap('layout')->getResource('layout')->getView();
		$config = new Zend_Config_Xml(APPLICATION_PATH . '/configs/menu.xml', 'nav');
		$view->navigation(new Zend_Navigation($config));
	}
}

